from os.path import split

a= "askdjfascx swfdfdaf"

# print(list(a))
# print(a.index("k"))
# print(a.index("ask"))
# print('a' in a)
# print(a.count(a))
# print(len(a))
# print(type(a))
# print(a[2])
# print(a[1:9:2])
# print(a[::-1])
# print(a.upper())
# print(a.lower())
# print(a.swapcase())
# print(a.capitalize())
# print(a.title())
#
# b=a.split(' ')
# print(b)
# b=a.splitlines()
# print(b)
# b=a.partition(' ')
# print(b)
# text1 = "第一行\n第二行\r第三行\r\n第四行"
# print(text1)
# print(type(text1))
# lines = text1.splitlines()
# print("不保留换行符：")
# print(lines)
#
# b= "askdjfascx swfdfdaf dsayufd 1isad2324242 1212 43 5654 77"
# print(b)

# text = "hello"
#
# # center() 示例
# print("center(10):", text.center(10))          # 用空格填充至10个字符宽度
# print("center(10, '-'):", text.center(10, '-'))  # 用'-'填充
#
# # ljust() 示例
# print("ljust(10):", text.ljust(10))            # 左对齐，空格填充
# print("ljust(10, '*'):", text.ljust(10, '*'))    # 左对齐，'*'填充
#
# # rjust() 示例
# print("rjust(10):", text.rjust(10))            # 右对齐，空格填充
# print("rjust(10, '#'):", text.rjust(10, '#'))    # 右对齐，'#'填充
#
# # zfill() 示例
# print("zfill(10):", text.zfill(10))            # 左侧用0填充
# print("数字zfill示例:", "42".zfill(5))          # 常用于数字补零

# c = "-".join(["ab","b","c","d"])
# print(c)
# b=c.replace('b','m')
# print(b)

print('name'.isidentifier())
print('name'.isspace())
print('name'.isalpha())
print('46346426247'.isdecimal())
print('46346426247'.isnumeric())
print('46346426247wqtegrdhretjr'.isalnum())
print('a'>'b')
print(max(1,2,3,4))
print(min('a','b','m','fsf'))
x='  ugfuidsgf   uwdigf sugfiuasg   '
z='--ugfuidsgf----uwdigf sugfiuasg----'
print(x.strip(' '))
print(x.lstrip(' '))
print(x.rstrip(' '))
print(z.strip('-'))
print(z.lstrip('-'))
print(z.rstrip('-'))
print(x.startswith(' '))
print(x.endswith(' '))




